package com.entity;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * AccpFiles entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "ACCP_FILES", schema = "ACCP")
public class AccpFiles implements java.io.Serializable {

	// Fields

	private Integer id;
	private AccpUser accpUser;
	private Timestamp uploadtime;
	private String files;
	private String filestype;

	// Constructors

	/** default constructor */
	public AccpFiles() {
	}

	/** minimal constructor */
	public AccpFiles(Integer id) {
		this.id = id;
	}

	/** full constructor */
	public AccpFiles(Integer id, AccpUser accpUser, Timestamp uploadtime,
			String files, String filestype) {
		this.id = id;
		this.accpUser = accpUser;
		this.uploadtime = uploadtime;
		this.files = files;
		this.filestype = filestype;
	}

	// Property accessors
	@Id
	@Column(name = "ID", unique = true, nullable = false, precision = 8, scale = 0)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "UPLOADID")
	public AccpUser getAccpUser() {
		return this.accpUser;
	}

	public void setAccpUser(AccpUser accpUser) {
		this.accpUser = accpUser;
	}

	@Column(name = "UPLOADTIME", length = 7)
	public Timestamp getUploadtime() {
		return this.uploadtime;
	}

	public void setUploadtime(Timestamp uploadtime) {
		this.uploadtime = uploadtime;
	}

	@Column(name = "FILES")
	public String getFiles() {
		return this.files;
	}

	public void setFiles(String files) {
		this.files = files;
	}

	@Column(name = "FILESTYPE", length = 8)
	public String getFilestype() {
		return this.filestype;
	}

	public void setFilestype(String filestype) {
		this.filestype = filestype;
	}

}